#include "CEntity.h"
#include "CVector.h"

CEntity::CEntity(double x, double y) :
	position(CVector(x, y)),
	disposed(false),
	adjustment(VGCAdjustment(0, 0)) {}

CEntity::~CEntity() {}

void CEntity::step(const double &time) {}
void CEntity::draw(const double &time) {}
void CEntity::destroy() {}

void CEntity::setPosition(CVector position) {
	this->position = position;
}

CVector CEntity::getPosition() {
	return position;
}

void CEntity::setDisposed(bool disposed) {
	this->disposed = disposed;
}

bool CEntity::isDisposed() {
	return disposed;
}

void CEntity::setAdjustment(VGCAdjustment adjustment) {
	this->adjustment = adjustment;
}

VGCAdjustment CEntity::getAdjustment() {
	return adjustment;
}

bool CEntity::isAt(CVector point) {
	return ((getPosition().getX() == point.getX())
		&&	(getPosition().getY() == point.getY())); 
}